-- shape_change
-- created by dengc
-- 变身状态

return {
    fetchProps = function(who, status, condition)
        local props    = {};
        local propId   = PropM.getPropId("shape_change");
        local endRound = condition["end_round"];
        local shapeId  = condition["shape_id"];
        local value    = condition["value"] or 1;

        -- 填充为属性需要的格式
        local prop = {propId, shapeId, value, endRound};
        table.insert(props, prop);

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local shapeId  = condition["shape_id"];
        return ShapeChangeM.query(shapeId, "desc");
    end,
};
